package com.eastedu.template.core.lifrcycle;

import com.eastedu.template.exception.ReportGenerateCallback;
import com.eastedu.template.model.ReportDataContainer;

/**
 * The interface Report export cycle.
 *
 * @author superman
 */
public interface ReportExportCycle {
    /**
     * 启动报告生成任务
     *
     * @param container the container
     * @param callback  the callback
     */
    void start(ReportDataContainer container, ReportGenerateCallback callback);

    /**
     * 停止报告成.
     *
     * @param taskId the task id
     */
    void stop(String taskId);
}
